//-----------------------------------------------------------------------------
//
// FifteenPuzzle
//
// Eugene Magdel and Joshua Jung
//
// 2011 for University of Illinois at Chicago CS340 w/ Professor Troy
//
//-----------------------------------------------------------------------------
#include "fifteenpuzzle.h"
#include "ui_fifteenpuzzle.h"
#include <QGraphicsPixmapItem>
#include <QMessageBox>

#ifndef BLOCK_H
#define BLOCK_H

class Grid;

class Block{
    private:
        Grid * board;

    public:
        void move();
        Block(int,bool,Grid*);
        int get_value();
        bool operator>(Block*);
        bool is_empty();
        Block * prev;
        Block * next;
        int value;
        bool empty;
        void draw_tile(bool isSolved);
        QPixmap *pm;
        QGraphicsPixmapItem * pmi;
        void initialize_tile(QGraphicsScene*);
};
#endif
